package com.tuo51.childcare.domain.vo;


import com.tuo51.childcare.domain.ptest.PTestItem;
import com.tuo51.foudation.utils.CopyUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PTestItemVO implements Serializable {

    private String id;//用户id

    private boolean deleted;

    private Date created;

    private Integer dailyIndex;

    private Integer forDay;

    private String title;

    private String categoryId;

    private Integer itemType = 0;

    private Integer answerType;

    private Integer multipleCount;

    private List<PTestItemOptionVO> options;

    private String images;

    private String videos;

    private String ref;

    private String hint;


    public static PTestItemVO of(PTestItem obj){
        PTestItemVO ret = new PTestItemVO();

        CopyUtils.copyProperties(obj, ret);

        return ret;
    }
}
